cd /d %~dp0

wmic process where "commandline like '%%%1%%'" get Handle,CommandLine

wmic process where "commandline like '%%%1%%'" get Handle |  grep -Po "\d+" | xargs  -ipid taskkill /PID  pid /f